<?php



class PaymentsMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.openbravo.map.PaymentsMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(PaymentsPeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(PaymentsPeer::TABLE_NAME);
		$tMap->setPhpName('Payments');
		$tMap->setClassname('Payments');

		$tMap->setUseIdGenerator(false);

		$tMap->addPrimaryKey('ID', 'Id', 'VARCHAR', true, 255);

		$tMap->addForeignKey('RECEIPT', 'Receipt', 'VARCHAR', 'RECEIPTS', 'ID', true, 255);

		$tMap->addColumn('PAYMENT', 'Payment', 'VARCHAR', true, 255);

		$tMap->addColumn('TOTAL', 'Total', 'DOUBLE', true, null);

	} 
} 